<template>
	<view class="home">	
		<!-- 头部 -->
		<view class="header">
			<view class="left">
				<text>小程序商城</text>
				<image src="/static/home/vip.png" mode=""></image>
			</view> 
			<image src="/static/home/setting.png" mode=""></image>
		</view>
		<!-- Banner -->
		<image class="banner" src="../../static/home/banner.png" mode=""></image>
		<!-- 导航栏 -->
		<view class="nav-menu">
			<view class="menu-list" 
				  v-for="(item,index) in navList"
				  :key="index"
				  >
				<image :src="item.imagePath" mode=""></image>
				<text>{{item.text}}</text>
			</view>
		</view>
		<!-- 产品导购 -->
		<view class="product-guide">
			<view class="guide-left">
				<text>优品抢购</text>
				<text>商城最新数据</text>
			</view>
			<view class="guide-right">
				<view class="guide-right-top">
					<text>限时抢购</text>
					<text>商城双十一活动</text>
				</view>
				<view class="guide-right-buttom">
					<text>保健专区</text>
					<text>商城最新数据</text>
				</view>
			</view>
		</view>
		<!-- 主题精选 -->
		<view class="mlog">
			<view class="mlog-header">
				<text>主题精选</text>
				<text> >>更多 </text>
			</view>
			<view class="mlog-line"></view>
			<view class="integral-point">
				<view class="integral-point-left">
					<image src="../../static/home/integral-point.png" mode=""></image>
					<view class="integral-point-head">整点特价</view>
					<view class="is-pay">
						<text>已付款</text>
						<text>未付款</text>
					</view>
				</view>
				<view class="integral-point-right">
					512人已下单
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navList:[
					{
						imagePath:"../../static/home/jump.png",
						text:"跳楼专区"
					},
					{
						imagePath:"../../static/home/collect.png",
						text:"我的收藏"
					},
					{
						imagePath:"../../static/home/discounts.png",
						text:"特价优惠"
					},
					{
						imagePath:"../../static/home/western.png",
						text:"欧美专区"
					}
				]
			};
		}
	}
</script>

<style lang="scss">
	.home{
		width: 710rpx;
		padding: 64rpx 0;
		margin: 0 auto;
		.header{
			display: flex;
			justify-content: space-between;
			margin-bottom: 50rpx;
			.left{
				text{
					font-weight: bold;
					font-size: 42rpx;
				}
				image{
					width: 84rpx;
					height: 25rpx;
					margin-left: 10rpx;
				}
			}
			image{
				width: 45rpx;
				height: 45rpx;
			}
		}
		.banner{
			display: block;
			width: 100%;
			height: 371rpx;
		}
		.nav-menu{
			width: 620rpx;
			height: 132rpx;
			margin: 50rpx auto;
			display: flex;
			justify-content: space-around;
			.menu-list{
				display: flex;
				flex-direction: column;
				text-align: center;
				image{
					width: 80rpx;
					height: 78rpx;
					margin: 0 auto;
					margin-bottom: 20rpx;
				}
				text{
					color: #000;
					font-size: 26rpx;
				}
			}
		}
		.product-guide{
			width: 100%;
			height: 296rpx;
			display: flex;
			justify-content: space-between;
			margin-bottom: 40rpx;
			text{
				display: block;
				margin-left: 32rpx;
				&:nth-child(1){
					font-size: 34rpx;
					color: #000;
					font-weight: bold;
					margin-top: 35rpx;
					margin-bottom: 12rpx;
				}
				&:nth-child(2){
					font-size: 24rpx;
					color: #858587;
				}
			}
			.guide-left{
				width: 308rpx;
				height: 296rpx;
				background: url(../../static/home/guide-left.png);
				background-size: 100% 100%;
				text{
					&:nth-child(1){
						margin-top: 65rpx;
						margin-bottom: 12rpx;
					}
				}
			}
			.guide-right{
				width: 390rpx;
				.guide-right-top{
					width: 100%;
					height: 140rpx;
					background: url(../../static/home/guide-right1.png);
					background-size: 100% 100%;
					margin-bottom: 13rpx;
					overflow: hidden;
				}
				.guide-right-buttom{
					width: 100%;
					height: 140rpx;
					background: url(../../static/home/guide-right2.png);
					background-size: 100% 100%;
					overflow: hidden;
				}
			}
		}
		.mlog{
			.mlog-header{
				width: 100%;
				height: 35rpx;
				display: flex;
				justify-content: space-between;
				text{
					&:nth-child(1){
						font-size: 34rpx;
						color: #484a59;
						font-weight: bold;
					}
					&:nth-child(2){
						font-size: 24rpx;
						color: #7d8198;
					}
				}
			}
			.mlog-line{
				width: 100%;
				height: 2rpx;
				background-color: #eee;
				margin-top: 30rpx;
				margin-bottom: 40rpx;
			}
			.integral-point{
				height: 40rpx;
				display: flex;
				justify-content: space-between;
				.integral-point-left{
					display: flex;
					justify-content: space-around;
					image{
						width: 40rpx;
						height: 40rpx;
						margin-right: 13rpx;
					}
					.integral-point-head{
						font-size: 34rpx;
						font-weight: bold;
						color: #484a59;
						line-height: 40rpx;
					}
					.is-pay{
						display: flex;
						text{
							display: block;
							padding: 4rpx;
							font-size: 21rpx;
							color: #0095e6;
							background-color: #f1f8ff;
							margin: 0 7rpx;
							line-height: 40rpx;
						}
					}
				}
				.integral-point-right{
					font-size: 24rpx;
					color: #7d8198;
					line-height: 40rpx;
				}
			}
		}
	}
</style>
